package com.wangliang.deepseek.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * API 配置类
 * 
 * @author Wang Liang
 */
@Configuration
public class ApiConfig {

    @Value("${deepcode.api.key}")
    private String apiKey;

    @Value("${deepcode.api.timeout-seconds:60}")
    private int timeoutSeconds;

    @Value("${deepcode.api.max-retries:3}")
    private int maxRetries;

    @Value("${deepcode.api.retry-delay-ms:1000}")
    private int retryDelayMs;

    public String getApiKey() {
        return apiKey;
    }

    public int getTimeoutSeconds() {
        return timeoutSeconds;
    }

    public int getMaxRetries() {
        return maxRetries;
    }

    public int getRetryDelayMs() {
        return retryDelayMs;
    }
}